import type { MockMethod } from 'vite-plugin-mock'

export default [
    // 密码登录
    {
        url: '/mock/v1/loginByPwd',
        method: 'post',
        response: () => {
            return {
                code: 200,
                message: 'ok',
                data: {
                    token: '__TEMP_TOKEN__',
                    refreshToken: '__TEMP_REFRESH_TOKEN__',
                    userInfo: {
                        userId: '0001',
                        userName: 'Soybean',
                        userPhone: '15170283876',
                        permissions: ['super'],
                    },
                },
            }
        },
    },
] as MockMethod[]
